package com.cssl.controller;


import com.cssl.domain.dto.DtsSearchHistoryDto;
import com.cssl.openFeign.DtsSearchHistoryClient;


import com.cssl.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/userHistory")
public class DtsSearchHistoryController {
    @Autowired
    private DtsSearchHistoryClient dtsSearchHistoryClient;

    @PostMapping("/listHistory")
    public Result getHistoryList(@RequestBody DtsSearchHistoryDto dtsSearchHistoryDto) {
        return dtsSearchHistoryClient.getHistoryList(dtsSearchHistoryDto);

    }
}
